package com.study.mike.service.impl;

import cn.hutool.extra.spring.SpringUtil;
import com.study.mike.service.UserService;

/**
 * @author kh
 */
public class BeanTestRunnable implements Runnable {
    private final UserService userService;

    public BeanTestRunnable(UserService userService) {
        this.userService = SpringUtil.getBean(UserService.class);
    }

    @Override
    public void run() {
        userService.getOne(null);
    }

    void test() {
        userService.getOne(null);
    }
}
